function insertExpn(temp){
    const sqlite3 = require("sqlite3").verbose()
    const path = require('path');
    const dbName = path.join(__dirname, '../data/demo.db');

    var db;
    db = new sqlite3.Database(dbName,function(err){
        if(err) throw err;
    })

    db.run(`update expert set e_name=? WHERE e_id=?`,temp.e_name,temp.e_id,function(err){
        if (err) throw err;
        console.log('更新成功')
    })
}

module.exports=insertExpn;
